package com.zhujh.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AndroidDebugTest1 extends Activity {
    /** Called when the activity is first created. */
	
	private static final String TAG="AndroidDebugTest";
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Log.v(TAG, "Log.VERBOSE");
        //Log.e(TAG, "Log.ERROR");
        //Log.d(TAG,"Log.DEBUG");
        //Log.i(TAG, "Log.INFO");
        //Log.w(TAG, "Log.WARN");
        
        
        setContentView(R.layout.main);
        Button button1=(Button) this.findViewById(R.id.Button01);
        button1.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View view) {
				Intent intent=new Intent();
				intent.setClass(AndroidDebugTest1.this, AndroidDebugTest2.class);
				startActivity(intent);
				AndroidDebugTest1.this.finish();
			}
        	
        });
        
        
        Button button2=(Button) this.findViewById(R.id.Button02);
        button2.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View view) {
				AndroidDebugTest1.this.finish();
			}
        	
        });
    }
}